<!DOCTYPE html>
<html>
<head>
    <% include ../common/meta.ejs %>
    <title>管理平台</title>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>

<div class="container page-content">
    <!--title-->
    <div class="page-header">
        <h1>菜品维护</h1>

        <div class="operationButton" >
            <div class="btn-group" role="group">
                <button type="button" class="btn btn-success" id="save">
                    <span class="glyphicon glyphicon-plus"></span>
                    保存
                </button>
                <button type="button" class="btn btn-primary" id="cancel">
                    <span class="glyphicon glyphicon-pencil"></span>
                    取消
                </button>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                基本信息
            </div>
        </div>
        <div class="panel-body">
            <form class="form-horizontal" id="baseInfo">
                <div class="dolphin-row">
                    <div class="dolphin-col-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                所属品类
                            </label>
                            <div class="col-sm-10">
                                <select class="form-control" options optionUrl="/data/pcm/category/pCode/<%= session.job %>?norecom=true&noproduct=true" codeField="id" name="cateId" id="categoryId"></select>
                            </div>
                        </div>
                    </div>
                    <div class="dolphin-col-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                菜品名称
                            </label>
                            <div class="col-sm-10">
                                <div class="dolphin_i18n_box">
                                    <input type="hidden" class="form-control" name="name" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="dolphin-col-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                基本价格
                            </label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control"  name="basePrice.value">
                            </div>
                        </div>
                    </div>
                    <div class="dolphin-col-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                是否推荐
                            </label>
                            <div class="col-sm-10">
                                <div class="slideThree"><input type="checkbox" value="true" id="slideThree" name="recommend" />
                                    <label for="slideThree"></label></div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="panel panel-info default-hidden" id="extendAttrPanel">
        <div class="panel-heading">
            <div class="panel-title">
                扩展信息
            </div>
        </div>
        <div class="panel-body">
            <form class="form-horizontal">
                <div class="dolphin-row" id="categoryAttrPanelBody"></div>
            </form>
        </div>
    </div>

    <div class="panel panel-warning default-hidden" id="imageAttrPanel">
        <div class="panel-heading">
            <div class="panel-title">
                图片
            </div>
        </div>
        <div class="panel-body">
            <form class="form-horizontal">
                <span class="btn btn-success fileinput-button"><i class="glyphicon glyphicon-plus"></i>
                    <span>图片选择</span>
                    <input id="fileupload" type="file" name="upfile" multiple>
                </span>
                <div class="dolphin-row">
                    <div class="dolphin-col-8" id="imageAttrPanelBody"></div>
                    <div class="dolphin-col-16">
                        <img style="width: 90%;height: 90%;" id="imageShowBody" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
